// 开发环境配置
export let baseUrl;
export let baseMoreUrl;
export let baseHotelUrl;

// #ifndef MP
var  isDev = process.env.NODE_ENV === 'development'
// #endif
// #ifdef MP
const {miniProgram} = uni.getAccountInfoSync();
var  isDev = miniProgram.envVersion == 'release'
// #endif

if (isDev) {
  baseUrl = 'https://api-beta-xyh.shisan-xi.work/';
  baseMoreUrl = 'https://api-beta-shop.shisan-xi.work/';
  baseHotelUrl = 'https://api-beta-xyh.shisan-xi.work/';
} else {
  baseUrl = 'https://api-beta-xyh.shisan-xi.work/';
  baseMoreUrl = 'https://api-beta-shop.shisan-xi.work/';
  baseHotelUrl = 'https://api-beta-xyh.shisan-xi.work/';
}

export const apiPath = '/shop/api/';
export const tokenName = 'ygbToken';
export const udidName = 'xyh';
export const project = 'ygb';
export default {
  baseUrl,
  baseMoreUrl,
  baseHotelUrl,
  apiPath,
  tokenName,
  udidName,
  project
};
